package showtime.framework.algorithm.scroller
{
	import flash.display.BitmapData;
	
	/** 
	 * @project showtime
	 * @author yinhao
	 * @date 2011-3-14
	 *
	 */
	
	public class Scroller
	{
		protected var source:BitmapData = null;
		
		protected var canvas:BitmapData = null;
		
		
		public function Scroller(source:BitmapData, canvas:BitmapData)
		{
			this.source = source;
			
			this.canvas = canvas;
		}
		
		public function render(_currentX:int = 0, _currentY:int = 0, dx:int = 0, dy:int = 0):void
		{
			
		}
		
		public function dispose():void
		{
			source = null;
			canvas = null;
		}
		
		protected function getCanvasWidth():int
		{
			return canvas.width;
		}
		
		protected function getCanvasHeight():int
		{
			return canvas.height;
		}
	}
}